package stc.skymobi.transport.protocol.esb.hdr;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import stc.skymobi.bean.esb.annotation.EsbField;


/**
 * 带条件广播规则的E2A头
 * @author Bluces.Wang@sky-mobi.com
 *
 */
public class ESBModule2AccessWithBroadcastHeader {
	
    @EsbField(index = 1)
	private	ETFTerminalAccessInfo		terminalAccessInfo;
    
    @EsbField(index = 2)
	private	ETFTerminalBroadCastRule	terminalBroadCastRule;
    
    @EsbField(index = 3)
	private	ETFTerminalMessageHeader	terminalMessageHeader;
    
    public String toString() {
        
        return  ToStringBuilder.reflectionToString(this, 
                            ToStringStyle.SHORT_PREFIX_STYLE);
    }

	/**
	 * @return the terminalAccessInfo
	 */
	public ETFTerminalAccessInfo getETFTerminalAccessInfo() {
		return terminalAccessInfo;
	}

	/**
	 * @return the terminalMessageHeader
	 */
	public ETFTerminalMessageHeader getETFTerminalMessageHeader() {
		return terminalMessageHeader;
	}

	/**
	 * @param terminalAccessInfo the terminalAccessInfo to set
	 */
	public void setETFTerminalAccessInfo(ETFTerminalAccessInfo terminalAccessInfo) {
		this.terminalAccessInfo = terminalAccessInfo;
	}

	/**
	 * @param terminalMessageHeader the terminalMessageHeader to set
	 */
	public void setETFTerminalMessageHeader(ETFTerminalMessageHeader terminalMessageHeader) {
		this.terminalMessageHeader = terminalMessageHeader;
	}

	public ETFTerminalBroadCastRule getTerminalBroadCastRule() {
		return terminalBroadCastRule;
	}

	public void setTerminalBroadCastRule(
			ETFTerminalBroadCastRule terminalBroadCastRule) {
		this.terminalBroadCastRule = terminalBroadCastRule;
	}
    
    
}
